package com.ityj.yygh.sms.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ConstantPropertiesUtils implements InitializingBean {

    @Value("${sms.rly.account}")
    private String account;//账户id
    @Value("${sms.rly.token}")
    private String token;//密匙 key
    @Value("${sms.rly.appId}")
    private String appID;

    public static String accountSid;
    public static String authToken;
    public static String appId;

    @Override
    public void afterPropertiesSet() throws Exception {
        accountSid = this.account;
        authToken = this.token;
        appId = this.appID;
    }
}
